package tech.aistar.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import tech.aistar.entity.Evaluate;
import tech.aistar.mapper.EvaluateMapper;
import tech.aistar.service.IEvaluateService;

import java.util.List;


@Service
public class EvaluateImpl implements IEvaluateService {
    @Autowired
    private EvaluateMapper evaluateMapper;
    @Override
    public List<Evaluate> selectAll() {
        return evaluateMapper.selectAll();
    }

    @Override
    public void insert(Evaluate evaluate) {
evaluateMapper.insert(evaluate);
    }

    @Override
    public void updateByPrimaryKey(Evaluate evaluate) {
evaluateMapper.updateByPrimaryKey(evaluate);
    }

    @Override
    public void deleteByPrimaryKey(Integer id) {
evaluateMapper.deleteByPrimaryKey(id);
    }

    @Override
    public Evaluate findById(Integer integer) {
        return  evaluateMapper.findById(integer);
    }


    @Override
    public List<Integer> findByagentId(Integer integer) {
        return evaluateMapper.findByagentId(integer);
    }

    @Override
    public Evaluate findByregisterId(Integer register_id, Integer agent_id) {
        return evaluateMapper.findByregisterId(register_id,agent_id);
    }
}
